package com.itheima.design.mode.factory.abstract_factory;

public class NvWa {

    public static void main(String[] args) {

        FemaleHumanFactory femaleHumanFactory = new FemaleHumanFactory();

        MaleHumanFactory maleHumanFactory = new MaleHumanFactory();

        Human whiteFemaleHuman = femaleHumanFactory.createWhiteHuman();

        Human whiteMaleHuman = maleHumanFactory.createWhiteHuman();

        whiteFemaleHuman.cry();
        whiteFemaleHuman.laugh();
        whiteFemaleHuman.sex();

    }
}
